package com.xx.mapper;

import com.xx.entity.Suppliers;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SuppliersMapper {

    Suppliers queryById(@Param("supplierId") Integer supplierId);


    List<Suppliers> queryAllByLimit(@Param("suppliers") Suppliers suppliers, @Param("pageNum") Integer pageNum);


    long count(@Param("suppliers") Suppliers suppliers);

    int insert(@Param("suppliers") Suppliers suppliers);

    int insertBatch(@Param("entities") List<Suppliers> entities);


    int insertOrUpdateBatch(@Param("entities") List<Suppliers> entities);


    int update(@Param("suppliers") Suppliers suppliers);

    int deleteById(@Param("supplierId") Integer supplierId);
}
